package com.september.mongo.entities;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Reference;
import com.september.util.BaseData;
@Embedded
public class Address extends BaseData {

	
	@Reference
	private City city;
	private String address;
	private String zipCode;
	
	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String[] getOrdreredField() {
		// TODO Auto-generated method stub
		return new String[]{"city","address","regionCode"};
	}

	@Override
	public void manageRefernces() {
		// TODO Auto-generated method stub

	}
	
	
	
	

}
